import api from "@/util/api";

const projectApi = {
  findAll(pageNum, size, params = {}) {
    params.projectTime = "";
    return api
      .get("/researchProjects", {
        //发送请求
        params: {
          pageNum,
          size,
          ...params,
        },
      })
      .then((resp) => resp.data);
  },
  removeAll(ids) {
    return api.delete("/researchProjects", { data: ids }).then((resp) => resp.data);
  },
  save(researchProjects) {
    return api.post("/researchProjects", researchProjects).then((resp) => resp.data);
  },
  update(researchProjects) {
    return api.put("/researchProjects", researchProjects).then((resp) => resp.data);
  },
  appointment(appointInfo){
    console.log(appointInfo);
    return api.post("/topicSelectionRecords/appointment",appointInfo).then((resp) => resp.data);
  }
};

export default projectApi;
